package com.demo.common.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.common.service.DemoService;
import com.demo.common.vo.DemoReq;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;

@Api("Demo")
@Slf4j
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    public DemoService demoService;

    @GetMapping("/get")
    public void get(DemoReq entity) {
        log.debug("{} Start", entity);
//        demoService.demoAync();
        log.debug("{} OK", entity);

    }

}
